package com.demo;

/**
 * @Author liuyuan
 * @Date 2022/7/13 下午4:20
 * @Version 1.0
 */
public class DemoIf {

    public static void main(String[] args) {
//        Integer age =9;
//        if (age> 18){
//            System.out.println("成年");
//        }else {
//            System.out.println("未成年");
//        }
        //String[] strs = {"a","b","c","d"};
        Object[] strs = {1,"b",true,"d"};
//        System.out.println(strs[0]);
//        System.out.println(strs[1]);
//        System.out.println(strs[2]);
        for (int i=0;i<strs.length;i++){
            System.out.println(strs[i]);
        }
    }
}
